package com.codinghero.example.jdk.lock.reetrantrw;

public class ReadOper implements Runnable {
	public void run() {
		ReadWriteLock.INSTANCE.readLock().lock();
		System.out.println("read start");
		try {
			Thread.sleep(100);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		System.out.println("read end");
		ReadWriteLock.INSTANCE.readLock().unlock();
	}
}
